package hu.szyrt.bug.models;

/**
 * 
 * Egy egyszerűsített kivonat a helyekből, mert így kevesebb memóriát foglal a kisebb objektum méretek miatt.
 * GPS koordinátákat is bele foglaltam mert, a térképhez kellhet.
 * 
 */
public class PlaceItemBase {

	private int id;
	private String name;
	private String description;	
	private String imagePolaroid;
	private int highlighstNumber;
	private int discountType;

	public PlaceItemBase(int id, String name, String description,
			String imagePolaroid, int highlightsNumber, int discountType) {
		this.id = id;
		this.name = name;
		this.description = description;		
		this.imagePolaroid = imagePolaroid;
		this.highlighstNumber = highlightsNumber;
		this.discountType = discountType;
	}
	
	// Functions ---------------------------------
	public boolean hasDiscount(){
		return discountType < 10 && discountType > 0;
	}

	// Getters -----------------------------------
	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public String getImagePolaroid() {
		return imagePolaroid;
	}

	public int getHighlighstNumber() {
		return highlighstNumber;
	}
	
	public int getDiscountType() {
		return discountType;
	}
	
}
